package com.java.grammer.oop;

/**
 * @author luzhikun
 * @date 2020/11/29- 9:09
 */
public class Dog {
    private String color;
    private int age;
    private String name;

    public Dog() {

    }

    public Dog(int age) {
        this.age = age;
        //age=age;
    }

    public Dog(String name) {
        this.name = name;
    }

    public Dog(String color, int age, String name) {
        this.color = color;
        this.age = age;
        this.name = name;
    }


    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }


    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }


}
